package com.controller;

import com.model.DanmakuShield;
import com.server.DanmakuShieldService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@Api("热门榜弹幕分析")
@RestController
@RequestMapping("/danmakuShield")
public class DanmakuShieldController {

    @Autowired
    private DanmakuShieldService danmakuShieldService;

    @CrossOrigin
    @RequestMapping(value = "/getAllDanmakuShield", produces = "application/json;charset=utf-8", method = RequestMethod.GET)
    public List<DanmakuShield> getAllDanmakuShield(){
        System.out.println("进入弹幕分析结果查询方法");
        return danmakuShieldService.getAllDanmakuShield();
    }
}
